package common

import (
	"company_website/src/api"
	"company_website/src/middleware"
	"github.com/gin-gonic/gin"
)

type AdminUser struct {
}

func (u *AdminUser) InitRouter(router *gin.RouterGroup) {
	router.POST("login", api.CommonAdminUser.AdminLogin)
	adminUser := router.Group("adminUser").Use(middleware.UserIsLogin())
	{
		adminUser.POST("setSelfInfo", api.AdminUser.SetSelfInfo)           //设置个人信息
		adminUser.POST("getItemBasicData", api.AdminUser.GetItemBasicData) //获取项目基础信息
		adminUser.POST("getAllItemData", api.AdminUser.GetAllItemData)     //获取项目详细信息
		adminUser.POST("getAllItem", api.AdminUser.GetAllItem)             //获取所有项目
	}
}
